package com.letao.server.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.letao.server.dto.PasswordChangeDTO;
import com.letao.server.dto.Result;
import com.letao.server.dto.UserLoginFormDTO;
import com.letao.server.entity.UserInfo;
import jakarta.servlet.http.HttpServletRequest;

/**
 * 用户模块功能处理接口
 */
public interface IUserService extends IService<UserInfo> {
    Result register(UserInfo userInfo);

    Result updateUser(UserInfo userInfo);

    Result login(UserLoginFormDTO loginForm, HttpServletRequest request);

    Result changePassword(PasswordChangeDTO password);

    Result getPageInfo(String name, Integer sex, String begin, String end, Integer page, Integer pageSize);

    Result sendCode(String phoneNumber);

    Result mlogin(UserLoginFormDTO loginForm);


}
